﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using SMSROUTER.Business;
using System.Threading.Tasks;
using Settings;
using StorageManagement;
using System.Configuration;
using System.Threading;
using System.Web.Services.Protocols;

namespace PluggableModulesInterface
{
    public abstract class WorkingBaseMTWebServiceRouter : WorkingBaseMTRouter
    {
        #region Properties and Fields
        protected abstract SoapHttpClientProtocol SmsRouterObject { get; }
        #endregion Properties and Fields

        protected override void SendSms(string routerUrl)
        {
            SmsRouterObject.Timeout = ServiceTimeOut;
            SmsRouterObject.Url = routerUrl;
            base.SendSms(routerUrl);
        }

        protected override void GetReport(string routerUrl)
        {
            SmsRouterObject.Timeout = ServiceTimeOut;
            SmsRouterObject.Url = routerUrl;
            base.GetReport(routerUrl);
        }
    }
}